projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e621c7a
)
i2c: tegra: Build warning fixes for 64-bit
author
Thierry Reding
<
[email protected]
>
Wed, 22 Jul 2015 21:33:22 +0000
(15:33 -0600)
committer
Tom Warren
<
[email protected]
>
Mon, 27 Jul 2015 22:53:57 +0000
(15:53 -0700)
Signed-off-by: Thierry Reding <
[email protected]
>
Signed-off-by: Tom Warren <
[email protected]
>
Signed-off-by: Stephen Warren <
[email protected]
>
Acked-by: Tom Rini <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Tom Warren <
[email protected]
>
drivers/i2c/tegra_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/tegra_i2c.c
b/drivers/i2c/tegra_i2c.c
index fc95646994892219747354039c9826268b64c43e..a4289788a65cb7ae8e9583a03299c2b1b992ef41 100644
(file)
--- a/
drivers/i2c/tegra_i2c.c
+++ b/
drivers/i2c/tegra_i2c.c
@@
-235,7
+235,7
@@
static int send_recv_packets(struct i2c_bus *i2c_bus,
if ((words == 1) && last_bytes) {
local = 0;
memcpy(&local, dptr, last_bytes);
- } else if ((unsigned)dptr & 3) {
+ } else if ((unsigned
long
)dptr & 3) {
memcpy(&local, dptr, sizeof(u32));
} else {
local = *wptr;
@@
-258,7
+258,7
@@
static int send_recv_packets(struct i2c_bus *i2c_bus,
local = readl(&control->rx_fifo);
if ((words == 1) && last_bytes)
memcpy(dptr, (char *)&local, last_bytes);
- else if ((unsigned)dptr & 3)
+ else if ((unsigned
long
)dptr & 3)
memcpy(dptr, &local, sizeof(u32));
else
*wptr = local;